Probably a simple problem but:
...
void closeModSelGUI(DB dbSpecifyModulesGUI)
{
hide(dbSpecifyModulesGUI)
destroy(dbSpecifyModulesGUI)
}
...
close(dbSpecifyModulesGUI,false,closeModSelGUI) //remove the normal close button
block(dbSpecifyModulesGUI)
...
strathglass - Thu Mar 03 07:50:07 EST 2011 |
Re: close() callback hangs instead of unblocking current window As I've stated in posts some time ago, you should treat dialogs that are intended for "block" differently than those intended for "show". It works out well if "blocked" dialogs are hidden and destoryed in code AFTER the "block", which means that custom close callbacks need only "release". Other button and apply callbacks may or may not "release". However, if you rigorously use a custom "close" callback that contains the one and only "release" for that dialog (and the close could be called by other callbacks), then I suppose that close callback could hide/destroy/release and you would not need to hide/destroy after the block.
|
Re: close() callback hangs instead of unblocking current window
Never call destroy from a callback. Put your code like this:
void closeModSelGUI(DB dbSpecifyModulesGUI)
{
hide(dbSpecifyModulesGUI)
}
...
close(dbSpecifyModulesGUI,false,closeModSelGUI) //remove the normal close button
block(dbSpecifyModulesGUI)
...
destroy dbSpecifyModulesGUI
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: close() callback hangs instead of unblocking current window Status: working greate now. Thanks! -strathglass |